package com.yzt.zhuju.network.entity.gift;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

/**
 * author : bob
 * date   : 2022/11/30
 * desc   :
 */
public class SendGiftObjectUser implements Parcelable {

    private String uid;
    private String userName;
    private String avatar;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public boolean isEmpty() {
        return TextUtils.isEmpty(uid) && TextUtils.isEmpty(userName) && TextUtils.isEmpty(avatar);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uid);
        dest.writeString(this.userName);
        dest.writeString(this.avatar);
    }

    public SendGiftObjectUser() {

    }

    protected SendGiftObjectUser(Parcel in) {
        this.uid = in.readString();
        this.userName = in.readString();
        this.avatar = in.readString();
    }

    public static final Parcelable.Creator<SendGiftObjectUser> CREATOR = new Parcelable.Creator<SendGiftObjectUser>() {
        @Override
        public SendGiftObjectUser createFromParcel(Parcel source) {
            return new SendGiftObjectUser(source);
        }

        @Override
        public SendGiftObjectUser[] newArray(int size) {
            return new SendGiftObjectUser[size];
        }
    };
}

